//window.onload=function(){
//tabcon("tab","con");
 function  tabcon(tab,con)
{
	
	var itab = document.getElementById(tab).getElementsByTagName("li");
	var icon = document.getElementById(con).getElementsByTagName("ul");
	
	for(var i = 0; i < itab.length; i++)
	{
		itab[i].index = i;
		itab[i].onclick = function ()
		{
			for(var i = 0; i < itab.length; i++){
				itab[i].className="";
			    icon[i].style.display = "none";
			}
			
			this.className = "cur";
			icon[this.index].style.display = "block";
		
		}	
	}
}
//tabcon2("fltab","flcon");
 function  tabcon2(tab,con)
{
	var itab = document.getElementById(tab).getElementsByTagName("li");
	var icon = document.getElementById(con).getElementsByTagName("ul");
	itab[0].style.background="#d00 url(/images/web/fl_iconh01.png) 9px 9px no-repeat";
	itab[1].style.background="url(/images/web/fl_icon02.png) 9px 9px no-repeat";
	
	for(var i = 0; i < itab.length; i++)
	{
		itab[i].index = i;
		itab[i].onclick = function ()
		{
			for(var i = 0; i < itab.length; i++){
			   itab[i].style.background="url(/images/web/fl_icon0"+(i+1)+".png) 9px 9px no-repeat";
			   itab[i].className="";
			   icon[i].style.display = "none";
			}
			 //alert(this.index);
			 this.style.background="#d00 url(/images/web/fl_iconh0"+(this.index+1)+".png) 9px 9px no-repeat";
		     icon[this.index].style.display = "block";
		     if(this.index == 0){
		    	 $("#rows").val("9");
		    	 $("#tag").val("div");
		    	 runningListSearch();
		     }else{
		    	 $("#rows").val("15");
		    	 $("#tag").val("table");
		    	 runningListSearch();
		     }
		}	
	}
}

//}